package top.ivansong.zeus.auth.center.storage.mapper;

import top.ivansong.zeus.auth.center.constant.AuthenticateType;
import top.ivansong.zeus.auth.center.storage.entry.UserAuthentication;
import top.ivansong.zeus.auth.center.storage.entry.UserAuthenticationPassword;

public interface UserAuthenticationMapper {
    UserAuthenticationPassword loadPasswordByUserId(Long userId);
    UserAuthentication loadAuthenticationByTypeAndContent(AuthenticateType type, String content);

    int insertOrUpdateUserPassword(UserAuthenticationPassword userAuthenticationPassword);

    int insertOrUpdateAuthenticationByUserIdAndType(Long userId, AuthenticateType type, String content);
}

